﻿using NHibernate;
using System.Diagnostics;

namespace NMA.Infrastructure.NHibernate.UnitOfWork
{
    using NMA.Infrastructure.UnitOfWork;
    using NMA.Infrastructure.NHibernate.Container;    

    public class UnitOfWorkFactory : IUnitOfWorkFactory
    {
        [DebuggerStepThrough]
        public IUnitOfWork GetNewUnitOfWork()
        {
            return new UnitOfWork(IoC.GetInstance<ISessionFactory>());
        }
    }
}